<template>
  <div class="cart-list">
    <CartListItem v-for="(item, index) in cartList" :key="index" :item="item" @ifAllCheck="ifAllCheck" />
  </div>
</template>

<script>
import CartListItem from "./CartListItem";
export default {
  data() {
    return {};
  },
  props: ["cartList"],
  components: {
    CartListItem,
  },
  created() {},
  methods: {
    ifAllCheck(){
      // console.log('点击了');
      this.$emit('ifAllCheck')
    }
  },
};
</script>

<style lang='less' scoped>
.cart-list {
  width: 100%;
  word-wrap: break-word;
  margin-top: 44px;
  margin-bottom:89px;
}
</style>
